3.66 \(\int \frac{a+b \tan ^{-1}(c x)}{(1+i c x)^4} \, dx\)

Optimal. Leaf size=100 \[ \frac{i \left (a+b \tan ^{-1}(c x)\right )}{3 c (1+i c x)^3}+\frac{i b}{24 c (-c x+i)}-\frac{b}{24 c (-c x+i)^2}-\frac{i b}{18 c (-c x+i)^3}-\frac{i b \tan ^{-1}(c x)}{24 c} \]

[Out]

((-I/18)*b)/(c*(I - c*x)^3) - b/(24*c*(I - c*x)^2) + ((I/24)*b)/(c*(I - c*x)) - ((I/24)*b*ArcTan[c*x])/c + ((I
/3)*(a + b*ArcTan[c*x]))/(c*(1 + I*c*x)^3)

________________________________________________________________________________________

Rubi [A]  time = 0.0512029, antiderivative size = 100, normalized size of antiderivative = 1., number of steps used = 5, number of rules used = 4, integrand size = 19, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.21, Rules used = {4862, 627, 44, 203} \[ \frac{i \left (a+b \tan ^{-1}(c x)\right )}{3 c (1+i c x)^3}+\frac{i b}{24 c (-c x+i)}-\frac{b}{24 c (-c x+i)^2}-\frac{i b}{18 c (-c x+i)^3}-\frac{i b \tan ^{-1}(c x)}{24 c} \]

Antiderivative was successfully verified.

[In]

Int[(a + b*ArcTan[c*x])/(1 + I*c*x)^4,x]

[Out]

((-I/18)*b)/(c*(I - c*x)^3) - b/(24*c*(I - c*x)^2) + ((I/24)*b)/(c*(I - c*x)) - ((I/24)*b*ArcTan[c*x])/c + ((I
/3)*(a + b*ArcTan[c*x]))/(c*(1 + I*c*x)^3)

Rule 4862

Int[((a_.) + ArcTan[(c_.)*(x_)]*(b_.))*((d_) + (e_.)*(x_))^(q_.), x_Symbol] :> Simp[((d + e*x)^(q + 1)*(a + b*
ArcTan[c*x]))/(e*(q + 1)), x] - Dist[(b*c)/(e*(q + 1)), Int[(d + e*x)^(q + 1)/(1 + c^2*x^2), x], x] /; FreeQ[{
a, b, c, d, e, q}, x] && NeQ[q, -1]

Rule 627

Int[((d_) + (e_.)*(x_))^(m_.)*((a_) + (c_.)*(x_)^2)^(p_.), x_Symbol] :> Int[(d + e*x)^(m + p)*(a/d + (c*x)/e)^
p, x] /; FreeQ[{a, c, d, e, m, p}, x] && EqQ[c*d^2 + a*e^2, 0] && (IntegerQ[p] || (GtQ[a, 0] && GtQ[d, 0] && I
ntegerQ[m + p]))

Rule 44

Int[((a_) + (b_.)*(x_))^(m_.)*((c_.) + (d_.)*(x_))^(n_.), x_Symbol] :> Int[ExpandIntegrand[(a + b*x)^m*(c + d*
x)^n, x], x] /; FreeQ[{a, b, c, d}, x] && NeQ[b*c - a*d, 0] && ILtQ[m, 0] && IntegerQ[n] &&  !(IGtQ[n, 0] && L
tQ[m + n + 2, 0])

Rule 203

Int[((a_) + (b_.)*(x_)^2)^(-1), x_Symbol] :> Simp[(1*ArcTan[(Rt[b, 2]*x)/Rt[a, 2]])/(Rt[a, 2]*Rt[b, 2]), x] /;
 FreeQ[{a, b}, x] && PosQ[a/b] && (GtQ[a, 0] || GtQ[b, 0])

Rubi steps

\begin{align*} \int \frac{a+b \tan ^{-1}(c x)}{(1+i c x)^4} \, dx &=\frac{i \left (a+b \tan ^{-1}(c x)\right )}{3 c (1+i c x)^3}-\frac{1}{3} (i b) \int \frac{1}{(1+i c x)^3 \left (1+c^2 x^2\right )} \, dx\\ &=\frac{i \left (a+b \tan ^{-1}(c x)\right )}{3 c (1+i c x)^3}-\frac{1}{3} (i b) \int \frac{1}{(1-i c x) (1+i c x)^4} \, dx\\ &=\frac{i \left (a+b \tan ^{-1}(c x)\right )}{3 c (1+i c x)^3}-\frac{1}{3} (i b) \int \left (\frac{1}{2 (-i+c x)^4}+\frac{i}{4 (-i+c x)^3}-\frac{1}{8 (-i+c x)^2}+\frac{1}{8 \left (1+c^2 x^2\right )}\right ) \, dx\\ &=-\frac{i b}{18 c (i-c x)^3}-\frac{b}{24 c (i-c x)^2}+\frac{i b}{24 c (i-c x)}+\frac{i \left (a+b \tan ^{-1}(c x)\right )}{3 c (1+i c x)^3}-\frac{1}{24} (i b) \int \frac{1}{1+c^2 x^2} \, dx\\ &=-\frac{i b}{18 c (i-c x)^3}-\frac{b}{24 c (i-c x)^2}+\frac{i b}{24 c (i-c x)}-\frac{i b \tan ^{-1}(c x)}{24 c}+\frac{i \left (a+b \tan ^{-1}(c x)\right )}{3 c (1+i c x)^3}\\ \end{align*}

Mathematica [A]  time = 0.0438442, size = 73, normalized size = 0.73 \[ \frac{-24 a+b \left (-3 i c^2 x^2-9 c x+10 i\right )+3 b \left (-i c^3 x^3-3 c^2 x^2+3 i c x-7\right ) \tan ^{-1}(c x)}{72 c (c x-i)^3} \]

Antiderivative was successfully verified.

[In]

Integrate[(a + b*ArcTan[c*x])/(1 + I*c*x)^4,x]

[Out]

(-24*a + b*(10*I - 9*c*x - (3*I)*c^2*x^2) + 3*b*(-7 + (3*I)*c*x - 3*c^2*x^2 - I*c^3*x^3)*ArcTan[c*x])/(72*c*(-
I + c*x)^3)

________________________________________________________________________________________

Maple [A]  time = 0.04, size = 93, normalized size = 0.9 \begin{align*}{\frac{{\frac{i}{3}}a}{c \left ( 1+icx \right ) ^{3}}}+{\frac{{\frac{i}{3}}b\arctan \left ( cx \right ) }{c \left ( 1+icx \right ) ^{3}}}-{\frac{{\frac{i}{24}}b\arctan \left ( cx \right ) }{c}}-{\frac{b}{24\,c \left ( cx-i \right ) ^{2}}}+{\frac{{\frac{i}{18}}b}{c \left ( cx-i \right ) ^{3}}}-{\frac{{\frac{i}{24}}b}{c \left ( cx-i \right ) }} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((a+b*arctan(c*x))/(1+I*c*x)^4,x)

[Out]

1/3*I/c*a/(1+I*c*x)^3+1/3*I/c*b/(1+I*c*x)^3*arctan(c*x)-1/24*I*b*arctan(c*x)/c-1/24/c*b/(c*x-I)^2+1/18*I/c*b/(
c*x-I)^3-1/24*I/c*b/(c*x-I)

________________________________________________________________________________________

Maxima [A]  time = 1.06591, size = 112, normalized size = 1.12 \begin{align*} -\frac{3 i \, b c^{2} x^{2} + 9 \, b c x +{\left (3 i \, b c^{3} x^{3} + 9 \, b c^{2} x^{2} - 9 i \, b c x + 21 \, b\right )} \arctan \left (c x\right ) + 24 \, a - 10 i \, b}{72 \, c^{4} x^{3} - 216 i \, c^{3} x^{2} - 216 \, c^{2} x + 72 i \, c} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a+b*arctan(c*x))/(1+I*c*x)^4,x, algorithm="maxima")

[Out]

-(3*I*b*c^2*x^2 + 9*b*c*x + (3*I*b*c^3*x^3 + 9*b*c^2*x^2 - 9*I*b*c*x + 21*b)*arctan(c*x) + 24*a - 10*I*b)/(72*
c^4*x^3 - 216*I*c^3*x^2 - 216*c^2*x + 72*I*c)

________________________________________________________________________________________

Fricas [A]  time = 2.20688, size = 235, normalized size = 2.35 \begin{align*} \frac{-6 i \, b c^{2} x^{2} - 18 \, b c x +{\left (3 \, b c^{3} x^{3} - 9 i \, b c^{2} x^{2} - 9 \, b c x - 21 i \, b\right )} \log \left (-\frac{c x + i}{c x - i}\right ) - 48 \, a + 20 i \, b}{144 \, c^{4} x^{3} - 432 i \, c^{3} x^{2} - 432 \, c^{2} x + 144 i \, c} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a+b*arctan(c*x))/(1+I*c*x)^4,x, algorithm="fricas")

[Out]

(-6*I*b*c^2*x^2 - 18*b*c*x + (3*b*c^3*x^3 - 9*I*b*c^2*x^2 - 9*b*c*x - 21*I*b)*log(-(c*x + I)/(c*x - I)) - 48*a
 + 20*I*b)/(144*c^4*x^3 - 432*I*c^3*x^2 - 432*c^2*x + 144*I*c)

________________________________________________________________________________________

Sympy [F(-1)]  time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a+b*atan(c*x))/(1+I*c*x)**4,x)

[Out]

Timed out

________________________________________________________________________________________

Giac [B]  time = 1.13206, size = 232, normalized size = 2.32 \begin{align*} \frac{3 \, b c^{3} x^{3} \log \left (c x + i\right ) - 3 \, b c^{3} x^{3} \log \left (c x - i\right ) - 9 \, b c^{2} i x^{2} \log \left (c x + i\right ) + 9 \, b c^{2} i x^{2} \log \left (c x - i\right ) - 6 \, b c^{2} i x^{2} - 9 \, b c x \log \left (c x + i\right ) + 9 \, b c x \log \left (c x - i\right ) - 18 \, b c x + 3 \, b i \log \left (c x + i\right ) - 3 \, b i \log \left (c x - i\right ) + 20 \, b i - 48 \, b \arctan \left (c x\right ) - 48 \, a}{144 \,{\left (c^{4} x^{3} - 3 \, c^{3} i x^{2} - 3 \, c^{2} x + c i\right )}} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a+b*arctan(c*x))/(1+I*c*x)^4,x, algorithm="giac")

[Out]

1/144*(3*b*c^3*x^3*log(c*x + i) - 3*b*c^3*x^3*log(c*x - i) - 9*b*c^2*i*x^2*log(c*x + i) + 9*b*c^2*i*x^2*log(c*
x - i) - 6*b*c^2*i*x^2 - 9*b*c*x*log(c*x + i) + 9*b*c*x*log(c*x - i) - 18*b*c*x + 3*b*i*log(c*x + i) - 3*b*i*l
og(c*x - i) + 20*b*i - 48*b*arctan(c*x) - 48*a)/(c^4*x^3 - 3*c^3*i*x^2 - 3*c^2*x + c*i)